<template>
  <div class="container">
  </div>
</template>

<script>
import card from '@/components/card'
import router from '@/router/routes'
import { filter } from '@/utils/filter'
import { islogin } from '@/auth/islogin'
import { workerApi } from '@/api/worker'
import { mapGetters } from 'vuex'
import index from '../../components/body/body-index';
import store from '@/store'

export default {
  components: {
    'index': index,
  },
  computed: {
    userInfo() {
      return store.state.user.userInfo
    }
  },
  data() {
    return {}
  },
  onShow() {
    workerApi.getWorkerAuthById({ id: this.userInfo['id'] }).then(res => {
      if (res.data != undefined) {
        store.commit('SET_TRUENAME_AUTH', true)
      } else {
        store.commit('SET_TRUENAME_AUTH', false)
      }
    })
  },
  created() {},
  method: {}
}
</script>

<style scoped>
</style>
